#include "csapp.h"

int main(int argc, char **argv)
{
     struct stat stat;
     char *type,*readok;

    Start(argv[1],&stat);
    if(S_ISDIR(stat.st_mode)
       type="regular";
    else if(S_ISDIR(stat.st_mode))
       type="directory";
    else
       type="other";
    if((start.st_mode&S_IRUSR))
      readok="yes";
    else
      reakok="no";
    printf("type:%s,read:%s\n",type,readok);
    exit(0);
}

